package com.dmwork.service.interaction.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.dmwork.service.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 作品评论表
 * </p>
 *
 * @author 李天
 * @since 2021-04-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("dm_work_comment")
@ApiModel(value="WorkComment对象", description="作品评论表")
public class WorkComment extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "评论所属用户id")
    private String customerId;

    @ApiModelProperty(value = "作品评论内容")
    private String content;

    @ApiModelProperty(value = "评论获赞数")
    private Integer likeCount;

    @ApiModelProperty(value = "评论所属作品id")
    private String workId;

    @ApiModelProperty(value = "该评论所回复的评论id")
    private String repliedCommentId;

    @ApiModelProperty(value = "该评论所回复的用户id")
    private String repliedCustomerId;

    @ApiModelProperty(value = "该评论所在的作品评论id")
    private String parentCommentId;

    @ApiModelProperty(value = "是否删除（0为未删除，1为已删除）")
    @TableField("is_deleted")
    @TableLogic
    private Integer deleted;


}
